Skip to content

Update compiler.cmd#51

Merged
tatethurston merged 1 commit intotatethurston:mainfrom
lordvlad:patch-1
Feb 23, 2025
Merged

Update compiler.cmd#51
tatethurston merged 1 commit intotatethurston:mainfrom
lordvlad:patch-1

Conversation

@lordvlad
Copy link
Contributor

@lordvlad lordvlad commented Feb 4, 2025

To support monorepos on windows, where protoscript might not actually be located in the project root's own node_modules, but in the monorepo's node_modules, use %~p0 to find compiler.js relative to the cmd file instead of relative to the current working directory

To support monorepos on windows, where protoscript might not actually be located in the project root's own node_modules, but in the monorepo's node_modules, use %~p0 to find compiler.js relative to the cmd file instead of relative to the current working directory
@tatethurston
Copy link
Owner

Hey @lordvlad thanks for the PR. I’d totally overlooked that this was still hardcoded 🤦‍♂️

I think the most robust way to handle this is updating to using npm exec or a require and execute one liner so we can rely on nodes resolution for this.

What do you think?

@lordvlad
Copy link
Contributor Author

lordvlad commented Feb 7, 2025 via email

@tatethurston tatethurston merged commit 66dc239 into tatethurston:main Feb 23, 2025
1 of 3 checks passed
tatethurston pushed a commit that referenced this pull request Feb 23, 2025
To support monorepos on windows, where protoscript might not actually be located in the project root's own node_modules, but in the monorepo's node_modules, use %~p0 to find compiler.js relative to the cmd file instead of relative to the current working directory
tatethurston pushed a commit that referenced this pull request Feb 23, 2025
To support monorepos on windows, where protoscript might not actually be located in the project root's own node_modules, but in the monorepo's node_modules, use %~p0 to find compiler.js relative to the cmd file instead of relative to the current working directory
tatethurston added a commit that referenced this pull request Feb 23, 2025
To support monorepos on windows, where protoscript might not actually be located in the project root's own node_modules, but in the monorepo's node_modules, use %~p0 to find compiler.js relative to the cmd file instead of relative to the current working directory

Co-authored-by: Waldemar Reusch <lordvlad@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants